package com.ruoyi.common.base.enums;


import com.ruoyi.common.base.vo.ComKeyValueVo;

import java.util.ArrayList;
import java.util.List;

/**
 * 宏观煤岩类型枚举
 *
 * @author gu
 */
public enum MacrotypesCoalEnum {
    BRIGHTBRIQUETTE("1", "光亮型煤"),//200
    SEMIBRIGHTBRIQUETTE("2", "半亮型煤"),//100
    SEMIDARKBRIQUETTE("3", "半暗型煤"),//300
    DULLBRIQUETTE("4", "暗淡型煤");
    private final String code;
    private final String type;

    MacrotypesCoalEnum(String code, String type) {
        this.code = code;
        this.type = type;
    }

    public static List<ComKeyValueVo> getArmTypeEnumList() {
        ArrayList<ComKeyValueVo> armTypeEnumList = new ArrayList<>();
        for (MacrotypesCoalEnum armTypeEnum : MacrotypesCoalEnum.values()) {
            ComKeyValueVo armTypeEnumVo = new ComKeyValueVo();
            armTypeEnumVo.setKey(armTypeEnum.code);
            armTypeEnumVo.setValue(armTypeEnum.type);
            armTypeEnumList.add(armTypeEnumVo);
        }
        return armTypeEnumList;
    }

    public String getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
